import React, { Component } from 'react'
import { Button } from 'antd';
import './login.css';

export default class Login extends Component {
  handleLogin = ()=> {    
    localStorage.setItem("isLogin",true);    
    this.props.history.push('/');  
  }
  render() {
    return (
      <div className="login-box">
        <Button type="primary" className="btn" onClick={() => this.handleLogin()}>登录</Button>
      </div>
    )
  }
}
